package com.david.nacos.config;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author David
 * @version V1.0
 * @Package com.david.nacos.config
 * @date 2021/5/15 20:17
 */
@SpringBootApplication
//dataId,自动刷新
@NacosPropertySource(dataId = "david.springboot",autoRefreshed = true)
public class ApplicationMain {
    public static void main(String[] args) {
        SpringApplication.run(ApplicationMain.class,args);
    }
}
